<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>jquery-2-并集/交集选择器</title>
    <script src="js/jquery-3.4.1.min.js"></script>
    <script>
        $(function () {
            // 并集选择器
            $("span,p").css("color", "green");

            //交集选择器
            $('div.box').css('color', 'blue')
        });
    </script>
</head>

<body>
    <span>群组选择器</span>
    <span>群组选择器</span>
    <p>群组选择器</p>
    <p>群组选择器</p>

    <div class="box">交集选择器</div>
    <div>交集选择器</div>
    

    
</body>

</html>